/**
 * 
 */
package org.okhati.www.model;

import java.util.Date;

/**
 * @author sujan
 *
 */
public class Employee {
	
	public enum Sex {
		MALE("Male"), FEMALE("Female");
		
		private String sex;

		Sex(String sex) {
			this.sex = sex;
		}

		/**
		 * @return the sex
		 */
		public String getSex() {
			return sex;
		}

		/**
		 * @param sex the sex to set
		 */
		public void setSex(String sex) {
			this.sex = sex;
		}
		
		public static Sex getSex(String sex) {
			return sex.equals(MALE) ? MALE : FEMALE;
		}
	}

	private int id;
	private int sn;
	private int pin;
	private String salutation;
	private String name;
	private Date dob;
	private Sex sex;
	private String post;
	private String category;
	private String faculty;
	private String subFaculty;
	private int classNo;
	private String level;
	private Date startDate;
	private Institution institution;
	private Date hiredDate;
	private String entryPost;
	private Date attendDate;
	private Institution previousInstitution;
	private int servicePeriod;
	private int presentPostPeriod;
	
	/**
	 * @return the id
	 */
	public int getId() {
		return id;
	}
	/**
	 * @param id the id to set
	 */
	public void setId(int id) {
		this.id = id;
	}
	/**
	 * @return the sn
	 */
	public int getSn() {
		return sn;
	}
	/**
	 * @param sn the sn to set
	 */
	public void setSn(int sn) {
		this.sn = sn;
	}
	/**
	 * @return the pin
	 */
	public int getPin() {
		return pin;
	}
	/**
	 * @param pin the pin to set
	 */
	public void setPin(int pin) {
		this.pin = pin;
	}
	/**
	 * @return the salutation
	 */
	public String getSalutation() {
		return salutation;
	}
	/**
	 * @param salutation the salutation to set
	 */
	public void setSalutation(String salutation) {
		this.salutation = salutation;
	}
	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}
	/**
	 * @param name the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}
	/**
	 * @return the dob
	 */
	public Date getDob() {
		return dob;
	}
	/**
	 * @param dob the dob to set
	 */
	public void setDob(Date dob) {
		this.dob = dob;
	}
	/**
	 * @return the sex
	 */
	public Sex getSex() {
		return sex;
	}
	/**
	 * @param sex the sex to set
	 */
	public void setSex(Sex sex) {
		this.sex = sex;
	}
	/**
	 * @return the post
	 */
	public String getPost() {
		return post;
	}
	/**
	 * @param post the post to set
	 */
	public void setPost(String post) {
		this.post = post;
	}
	/**
	 * @return the category
	 */
	public String getCategory() {
		return category;
	}
	/**
	 * @param category the category to set
	 */
	public void setCategory(String category) {
		this.category = category;
	}
	/**
	 * @return the faculty
	 */
	public String getFaculty() {
		return faculty;
	}
	/**
	 * @param faculty the faculty to set
	 */
	public void setFaculty(String faculty) {
		this.faculty = faculty;
	}
	/**
	 * @return the subFaculty
	 */
	public String getSubFaculty() {
		return subFaculty;
	}
	/**
	 * @param subFaculty the subFaculty to set
	 */
	public void setSubFaculty(String subFaculty) {
		this.subFaculty = subFaculty;
	}
	/**
	 * @return the classNo
	 */
	public int getClassNo() {
		return classNo;
	}
	/**
	 * @param classNo the classNo to set
	 */
	public void setClassNo(int classNo) {
		this.classNo = classNo;
	}
	/**
	 * @return the level
	 */
	public String getLevel() {
		return level;
	}
	/**
	 * @param level the level to set
	 */
	public void setLevel(String level) {
		this.level = level;
	}
	/**
	 * @return the startDate
	 */
	public Date getStartDate() {
		return startDate;
	}
	/**
	 * @param startDate the startDate to set
	 */
	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}
	/**
	 * @return the institution
	 */
	public Institution getInstitution() {
		return institution;
	}
	/**
	 * @param institution the institution to set
	 */
	public void setInstitution(Institution institution) {
		this.institution = institution;
	}
	/**
	 * @return the hiredDate
	 */
	public Date getHiredDate() {
		return hiredDate;
	}
	/**
	 * @param hiredDate the hiredDate to set
	 */
	public void setHiredDate(Date hiredDate) {
		this.hiredDate = hiredDate;
	}
	/**
	 * @return the entryPost
	 */
	public String getEntryPost() {
		return entryPost;
	}
	/**
	 * @param entryPost the entryPost to set
	 */
	public void setEntryPost(String entryPost) {
		this.entryPost = entryPost;
	}
	/**
	 * @return the attendDate
	 */
	public Date getAttendDate() {
		return attendDate;
	}
	/**
	 * @param attendDate the attendDate to set
	 */
	public void setAttendDate(Date attendDate) {
		this.attendDate = attendDate;
	}
	/**
	 * @return the previousInstitution
	 */
	public Institution getPreviousInstitution() {
		return previousInstitution;
	}
	/**
	 * @param previousInstitution the previousInstitution to set
	 */
	public void setPreviousInstitution(Institution previousInstitution) {
		this.previousInstitution = previousInstitution;
	}
	/**
	 * @return the servicePeriod
	 */
	public int getServicePeriod() {
		return servicePeriod;
	}
	/**
	 * @param servicePeriod the servicePeriod to set
	 */
	public void setServicePeriod(int servicePeriod) {
		this.servicePeriod = servicePeriod;
	}
	/**
	 * @return the presentPostPeriod
	 */
	public int getPresentPostPeriod() {
		return presentPostPeriod;
	}
	/**
	 * @param presentPostPeriod the presentPostPeriod to set
	 */
	public void setPresentPostPeriod(int presentPostPeriod) {
		this.presentPostPeriod = presentPostPeriod;
	}
	
}
